dot — Vector dot product
dot()
calculates the dot product of two argument vectors. The
vectors should have the same number of elements. The resultant is a scalar
consisting of the sum of the element by element product of the two vectors.
This is not an built-in function. This function
is normally loaded on start-up from the dot.r
file in the
standard rlib
directory. Use of the -r
option, incorrectly
setting the RLAB_LIB_DIR
environmental variable, or modifying
dot.r
may make this function unavailable.
Subsections